// 定义变量
@logo-height: 6em;
@logo-padding: 1.5em;
@primary-shadow-color: #646cffaa;
@react-shadow-color: #61dafbaa;
@docs-color: #888;

#root {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.logo {
    height: @logo-height;
    padding: @logo-padding;
    will-change: filter;
    transition: filter 300ms;

    &:hover {
        filter: drop-shadow(0 0 2em @primary-shadow-color);
    }

    &.react:hover {
        filter: drop-shadow(0 0 2em @react-shadow-color);
    }
}

@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    a:nth-of-type(2) .logo {
        animation: logo-spin infinite 20s linear;
    }
}

.card {
    padding: 2em;
}

.read-the-docs {
    color: @docs-color;
}